<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    
        .con{
            width: 400px;
            height:400px;
            border: 1px solid #000;
            background-color: gold;
            /*设置背景图片*/
            background-image: url(images/007bg.jpg);
            /*不重复*/
            background-repeat: no-repeat;

            /*水平平铺*/
            /*background-repeat: repeat-x;*/
            /*垂直平铺*/
            /*background-repeat: repeat-y;*/


            /*水平  left center right 垂直 top  center bottom*/
            /*background-position: right top;*/

            /*可以用具体数值*/
            /*background-position: 100px bottom;*/

            /*整体区域的百分比 对齐了背景图片的百分比位置*/
            /*background-position: 30% 50%;*/

            /*图片固定*/
            /*background-attachment: fixed;*/
                        
        }
    
    
    </style>
</head>
<body>

    <div class="con">
        

    </div>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <p>哈哈哈哈</p>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>



</body>
</html>